<template>
  <div v-if="flag" class="bg">
    御剑乘风来,除魔天地间!
    <el-button @click="ff">关闭</el-button>
  </div>
</template>
<script>
export default {
  name: '',
  props: ['flag'],
  data() {
    return {}
  },
  computed: {},
  created() {},
  methods: {
    ff() {
      // this.flag = false
      this.$emit('update:flag', false)
    }
  }
}
</script>
<style lang='scss'  scoped>
.bg {
  background-color: pink;
}
</style>
